package com.lezhi.socialgram.model.sys;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by daizhen on 2017/3/24.
 */
public class SignUpUser {

    private String table;

    private Long userId;

    @NotEmpty(message = "手机号不能为空")
    private String telNum;

    @NotEmpty(message = "头像url不能为空")
    private String userImageUrl;

    @NotNull(message = "性别不能为null")
    private Integer sex;

    @NotNull(message = "生日不能为null")
    private Long birthdayTimezone;

    private Date birthday;

    @NotEmpty(message = "密码不能为空")
    private String password;

    private String nicknameZh;

    private String nicknameEn;

    private String voiceGreetingUrl;

    private Integer voiceGreetingSeconds;

    @NotNull(message = "注册设备类型不能为空")
    private Integer regDeviceType;

    @NotNull(message = "纬度不能为空")
    private Double lat;

    @NotNull(message = "经度不能为空")
    private Double lon;

    private String footPrints;

    private String country;

    private String region;

    private String city;

    private String county;

    private String regChannel;

    private Integer lastLoginDeviceType;

    private String lastLoginChannel;

    private String osVersion;

    private String clientVersion;

    private String deviceId;

    private String remoteIP;

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTelNum() {
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }

    public String getUserImageUrl() {
        return userImageUrl;
    }

    public void setUserImageUrl(String userImageUrl) {
        this.userImageUrl = userImageUrl;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Long getBirthdayTimezone() {
        return birthdayTimezone;
    }

    public void setBirthdayTimezone(Long birthdayTimezone) {
        this.birthdayTimezone = birthdayTimezone;
        this.birthday = new Date(birthdayTimezone);
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNicknameZh() {
        return nicknameZh;
    }

    public void setNicknameZh(String nicknameZh) {
        this.nicknameZh = nicknameZh;
    }

    public String getNicknameEn() {
        return nicknameEn;
    }

    public void setNicknameEn(String nicknameEn) {
        this.nicknameEn = nicknameEn;
    }

    public String getVoiceGreetingUrl() {
        return voiceGreetingUrl;
    }

    public void setVoiceGreetingUrl(String voiceGreetingUrl) {
        this.voiceGreetingUrl = voiceGreetingUrl;
    }

    public Integer getVoiceGreetingSeconds() {
        return voiceGreetingSeconds;
    }

    public void setVoiceGreetingSeconds(Integer voiceGreetingSeconds) {
        this.voiceGreetingSeconds = voiceGreetingSeconds;
    }

    public Integer getRegDeviceType() {
        return regDeviceType;
    }

    public void setRegDeviceType(Integer regDeviceType) {
        this.regDeviceType = regDeviceType;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public String getFootPrints() {
        return footPrints;
    }

    public void setFootPrints(String footPrints) {
        this.footPrints = footPrints;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getRegChannel() {
        return regChannel;
    }

    public void setRegChannel(String regChannel) {
        this.regChannel = regChannel;
    }

    public Integer getLastLoginDeviceType() {
        return lastLoginDeviceType;
    }

    public void setLastLoginDeviceType(Integer lastLoginDeviceType) {
        this.lastLoginDeviceType = lastLoginDeviceType;
    }

    public String getLastLoginChannel() {
        return lastLoginChannel;
    }

    public void setLastLoginChannel(String lastLoginChannel) {
        this.lastLoginChannel = lastLoginChannel;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getRemoteIP() {
        return remoteIP;
    }

    public void setRemoteIP(String remoteIP) {
        this.remoteIP = remoteIP;
    }

}